package com.egoo.ticket.server.service.impl;


import com.egoo.ticket.server.dao.CustomFieldDataSourceDao;
import com.egoo.ticket.server.pojo.entity.CustomFieldDataSource;
import com.egoo.ticket.server.service.CustomFieldDataSourceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author：victor_tang
 * @Date ：2020/4/9
 * @Description：自定义字段数据源
 */
@Service
@Slf4j
@Transactional(rollbackFor = Exception.class)
public class CustomFieldDataSourceServiceImpl implements CustomFieldDataSourceService {

	@Autowired
	private CustomFieldDataSourceDao customFieldDataSourceDao;

	/**
	 * TODO 根据id获取自定义字段数据源
	 * @author: victor_tang
	 * @createtime: 2020/3/31 11:05
	 * @param id 1
	 * @return: com.egoo.ews.service.vo.CustomFieldDataSource
	 */
	@Override
	public CustomFieldDataSource getDataSourceById(String id) {
		return customFieldDataSourceDao.selectByPrimaryKey(id);
	}
}
